package com.yamaha.bikedesalon.data;

import java.util.Date;

import org.json.JSONObject;

import android.util.Log;

public class CategoryInfo {

	public String Id;
	public String Name;
	public Date LastUpdate;

	public CategoryInfo() {
	}

	public CategoryInfo(JSONObject object) {
		try {

			Id = object.getString("category_id");
			Name = object.getString("name");
			LastUpdate = new Date(object.getLong("last_update"));

		} catch (Exception e) {
			Log.e("CategoryInfo Error", e.getMessage(), e);
		}

	}
}
